package com.xy.factorymethod.order;

import com.xy.factorymethod.pizza.LDCheesePizza;
import com.xy.factorymethod.pizza.LDGreekPizza;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

/**
 * @author 谢阳
 * @version 1.8.0_131
 * @date 2022/6/10 11:14
 * @description
 */
public class PizzaStore {
    public static void main(String[] args) throws IOException {
        order();
    }

    private static void order()  throws IOException{
        BufferedReader strin = new BufferedReader(new InputStreamReader(System.in));
        System.out.println("=========请选择地区=========");
        System.out.println("1:北京 2:伦敦 其他:退出");
        System.out.print("请选择:");
        String city = strin.readLine();
        switch (city) {
            case "1" : {
                new BJOrderPizzaFactory();
                break;
            }
            case "2" : {
                new LDOrderPizzaFactory();
                break;
            }
        }
    }
}
